package org.spiderdesign.core.utils;

import org.springframework.util.DigestUtils;

public class MD5Util {
    public static String md5(String input) {
        return DigestUtils.md5DigestAsHex(input.getBytes());
    }

    public static String md5(String input, String salt) {
        return md5(md5(input) + salt);
    }
}
